.PHONY:
windows:forwardlist.exe
	forwardlist.exe 
forwardlist.exe:main.obj forwardlist.obj
	gcc -o forwardlist.exe main.obj forwardlist.obj -g
main.obj:main.c
	gcc -c main.c -o main.obj -g
forwardlist.obj:forwardlist.c
	gcc -c forwardlist.c -o forwardlist.obj -g


linux:forwardlist
	./forwardlist
forwardlist:main.o forwardlist.o
	gcc -o forwardlist main.o forwardlist.o -g
main.o:main.c
	gcc -c main.c -o main.o -g
forwardlist.o:forwardlist.c
	gcc -c forwardlist.c -o forwardlist.o -g


cleanwindows:
	deletewindows.bat

cleanlinux:
	rm -rf main.o
	rm -rf forwardlist.o


windowsanswer:answer.exe
	answer.exe 
answer.exe:mainanswer.obj answer.obj
	gcc -o answer.exe mainanswer.obj answer.obj -g
mainanswer.obj:main.c
	gcc -c main.c -o mainanswer.obj -g
answer.obj:answer.c
	gcc -c answer.c -o answer.obj -g


linuxanswer:answer
	./answer
answer:mainanswer.o answer.o
	gcc -o answer mainanswer.o answer.o -g
mainanswer.o:main.c
	gcc -c main.c -o mainanswer.o -g
answer.o:answer.c
	gcc -c answer.c -o answer.o -g



cleanwindowsanswer:
	deletewindowsanswer.bat

cleanlinuxanswer:
	rm -rf mainanswer.o
	rm -rf answer.o